﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
   MaintainScrollPositionOnPostback="true" EnableEventValidation="true" ValidateRequest="false"
    Async="true" CodeFile="car-fleet-insurance-th.aspx.cs" Inherits="car_fleet_insurance_car_fleet_insurance_th" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script type="text/javascript">
        //<![CDATA[
        (function() {
            var shr = document.createElement('script');
            shr.setAttribute('data-cfasync', 'false');
            shr.src = '//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js';
            shr.type = 'text/javascript'; shr.async = 'true';
            shr.onload = shr.onreadystatechange = function() {
                var rs = this.readyState;
                if (rs && rs != 'complete' && rs != 'loaded') return;
                var site_id = '3c11e36b96421cf905198a8914418219';
                try { Shareaholic.init(site_id); } catch (e) { }
            };
            var s = document.getElementsByTagName('script')[0];
            s.parentNode.insertBefore(shr, s);
        })();
        //]]>
    </script>
    <script type="text/javascript">
        setTimeout(function(){var a=document.createElement("script");
        var b=document.getElementsByTagName("script")[0];
        a.src=document.location.protocol+"//script.crazyegg.com/pages/scripts/0030/4575.js?"+Math.floor(new Date().getTime()/3600000);
        a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1);
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpHeader" runat="Server">
<div class="main-bg jungle-bg">
        <div class="radius-box">
            <div class="fleet-col-left">
                <div class="main-title-heading">
                    ประกันภัยรถยนต์แบบกลุ่ม</div>
                <div class="body-text">
                    ใบเสนอราคาประกันภัยรถยนต์แบบกลุ่มของเราสามารถใช้ได้กับธุรกิจที่มีรถยนต์มากว่า 5
                    คัน ขึ้นไป เราจะค้นหาแพคเกจที่คุ้มค่าและครบวงจรที่ครอบคลุมสำหรับรถเพื่อการพาณิชย์
                    หรือรถบริษัททั้วไป ไม่ว่าจะเป็นรถเก๋ง, รถกระบะ, รถตู้, รถบรรทุกขนาดเล็ก-ขนาดใหญ่
                    และอีกหลายประเภทของรถเพื่อการพาณิชย์<br />
                </div>
                <div class="sub-heading top20">
                    ติดต่อเราเพื่อรับใบเสนอราคา!</div>
                <div class="body-text">
                    คุณสามารถส่งอีเมลหาเราที่ <a href="mailto:fleet@gluaygluay.com" style="text-decoration: none;
                                color: #3899EC;">fleet@gluaygluay.com</a> หรือโทรหาเราที่ 02 268 8222 เพื่อความรวดเร็วในการทำประกันภัยรถยนต์ของคุณ
                            บริษัทเปิดทำการวันจันทร์ถึงวันศุกร์ เวลา 9:00-18:00
                </div>
                <div class="promo-col-3 left top20">
                    <div class="sub-heading" style="font-size: 16px;">
                        <%=GetGlobalResourceObject("CarInsurance", "ShareExperience")%>:</div>
                    <div class='shareaholic-canvas' data-app='share_buttons' data-app-id='11407961' style="width: 276px;
                        margin-left: -30px;">
                    </div>
                </div>
            </div>
            <div class="fleet-col-right">
                <div class="main-title-heading">
                    <%=GetGlobalResourceObject("General", "LetusCallBack")%></div>
                <div style="padding-bottom: 10px; width: 450px;">
                    <%=GetGlobalResourceObject("General", "FleetMessage")%>
                </div>
                <asp:UpdatePanel ID="updatepanel" runat="server">
                    <ContentTemplate>
                        <div style="width: 440px;">
                            <asp:ValidationSummary ID="vsCallme" runat="server" ValidationGroup="fleetrequest"
                                ShowSummary="True" HeaderText="<%$ Resources:General,RequiredValidation%>" CssClass="error-msg" />
                        </div>
                        <div>
                            <div class="form-column">
                                <%=GetGlobalResourceObject("General", "CompanyName")%><span style="color: #FF0004">*</span>:</div>
                            <div class="form-row">
                                <asp:TextBox ID="txtCompanyName" CssClass="input-fields left" runat="server" MaxLength="50"></asp:TextBox>
                                <cc1:TextBoxWatermarkExtender ID="tbwCompanyName" runat="server" TargetControlID="txtCompanyName"
                                    WatermarkCssClass="input-fields left" WatermarkText="<%$Resources:General,EnterCompanyName%>">
                                </cc1:TextBoxWatermarkExtender>
                                <asp:RequiredFieldValidator ID="rfvCompanyName" runat="server" Text="" CssClass="validationError"
                                    ValidationGroup="fleetrequest" ErrorMessage="" ControlToValidate="txtCompanyName"
                                    Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revCompanyName" Text="" CssClass="validationError"
                                    runat="server" ValidationGroup="fleetrequest" ErrorMessage="" ControlToValidate="txtCompanyName"
                                    ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$" Display="Dynamic"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                        <div>
                            <div class="form-column">
                                <%=GetGlobalResourceObject("General", "Name")%><span style="color: #FF0004">*</span>:</div>
                            <div class="form-row">
                                <asp:TextBox ID="txtName" CssClass="input-fields left" runat="server" MaxLength="50"></asp:TextBox>
                                <cc1:TextBoxWatermarkExtender ID="tbwName" runat="server" TargetControlID="txtName"
                                    WatermarkCssClass="input-fields left" WatermarkText="<%$Resources:General,EnterName%>">
                                </cc1:TextBoxWatermarkExtender>
                                <asp:RequiredFieldValidator ID="rfvName" runat="server" Text="" CssClass="validationError"
                                    ValidationGroup="fleetrequest" ErrorMessage="" ControlToValidate="txtName" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revName" Text="" CssClass="validationError" runat="server"
                                    ValidationGroup="fleetrequest" ErrorMessage="" ControlToValidate="txtName" ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$"
                                    Display="Dynamic"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                        <div>
                            <div class="form-column">
                                <%=GetGlobalResourceObject("CarInsurance", "EmailAddress")%><span style="color: #FF0004">*</span>:</div>
                            <div class="form-row">
                                <asp:TextBox ID="txtEmail" CssClass="input-fields left" runat="server" MaxLength="100"></asp:TextBox>
                                <cc1:TextBoxWatermarkExtender ID="tbwEmail" runat="server" TargetControlID="txtEmail"
                                    WatermarkCssClass="input-fields left" WatermarkText="<%$Resources:General,EnterEmail%>">
                                </cc1:TextBoxWatermarkExtender>
                                <asp:RequiredFieldValidator ID="rfvEmail" runat="server" Text="" CssClass="validationError"
                                    ValidationGroup="fleetrequest" ErrorMessage="" ControlToValidate="txtEmail" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revEmail" Text="" CssClass="validationError"
                                    runat="server" ValidationGroup="fleetrequest" ErrorMessage="" ControlToValidate="txtEmail"
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                        <div>
                            <div class="form-column">
                                <%=GetGlobalResourceObject("CarInsurance", "MobileNo")%><span style="color: #FF0004">*</span>:</div>
                            <div class="form-row">
                                <asp:TextBox runat="server" ID="txtMobile" CssClass="input-fields left" MaxLength="10"></asp:TextBox>
                                <cc1:TextBoxWatermarkExtender ID="tbwMobile" runat="server" TargetControlID="txtMobile"
                                    WatermarkCssClass="input-fields left" WatermarkText="<%$Resources:General,MobileExample%>">
                                </cc1:TextBoxWatermarkExtender>
                                <asp:RequiredFieldValidator ID="rfvMobile" runat="server" ControlToValidate="txtMobile"
                                    CssClass="validationError" Display="Dynamic" ErrorMessage="" ValidationGroup="fleetrequest"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revMobile" runat="server" ControlToValidate="txtMobile"
                                    CssClass="validationError" ErrorMessage="" ValidationExpression="0[5-9]\d{8}"
                                    ValidationGroup="fleetrequest"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                        <div>
                            <div class="form-column">
                                <%=GetGlobalResourceObject("CarInsurance", "OfficePhoneNo")%><span style="color: #FF0004">*</span>:</div>
                            <div class="form-row">
                                <asp:TextBox runat="server" ID="txtCompanyContactNo" CssClass="input-fields left" MaxLength="9" Width="210"></asp:TextBox>
                                <span style="float: right; padding-right: 30px;">
                                    <asp:TextBox runat="server" ID="txtExtension" CssClass="input-fields left" MaxLength="4" Width="70"></asp:TextBox>
                                    <cc1:TextBoxWatermarkExtender ID="tbwExtension" runat="server" TargetControlID="txtExtension"
                                        WatermarkCssClass="input-fields left" WatermarkText="<%$Resources:General,Extension%>">
                                    </cc1:TextBoxWatermarkExtender>
                                    <asp:RegularExpressionValidator ID="revExtension" runat="server" ControlToValidate="txtExtension"
                                        CssClass="validationError" ErrorMessage="" ValidationExpression="^[0-9]+(\.[0-9])?$"
                                        ValidationGroup="fleetrequest"></asp:RegularExpressionValidator>
                                </span>
                                <cc1:TextBoxWatermarkExtender ID="tbwCompanyContactNo" runat="server" TargetControlID="txtCompanyContactNo"
                                    WatermarkCssClass="input-fields left" WatermarkText="<%$Resources:General,LandlineExample%>">
                                </cc1:TextBoxWatermarkExtender>
                                <asp:RequiredFieldValidator ID="rfvCompanyContactNo" runat="server" ControlToValidate="txtCompanyContactNo"
                                    CssClass="validationError" Display="Dynamic" ErrorMessage="" ValidationGroup="fleetrequest"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revCompanyContactNo" runat="server" ControlToValidate="txtCompanyContactNo"
                                    CssClass="validationError" ErrorMessage="" ValidationExpression="0[2,3,4,5,7]\d{7}"
                                    ValidationGroup="fleetrequest"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                        <div>
                            <div class="form-column">
                                <%=GetGlobalResourceObject("General", "NoOfCars")%><span style="color: #FF0004">*</span>:</div>
                            <div class="form-row">
                                <asp:TextBox runat="server" ID="txtNoOfCars" CssClass="input-fields" MaxLength="3"></asp:TextBox>
                                <cc1:TextBoxWatermarkExtender ID="tbwNoOfCars" runat="server" TargetControlID="txtNoOfCars"
                                    WatermarkCssClass="input-fields" WatermarkText="<%$Resources:General,EnterNoOfCars%>">
                                </cc1:TextBoxWatermarkExtender>
                                <asp:RequiredFieldValidator ID="rfvNoOfCars" runat="server" ControlToValidate="txtNoOfCars"
                                    CssClass="validationError" Display="Dynamic" ErrorMessage="" ValidationGroup="fleetrequest"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revNoOfCars" runat="server" ControlToValidate="txtNoOfCars"
                                    CssClass="validationError" ErrorMessage="" ValidationExpression="^[0-9]+(\.[0-9])?$"
                                    ValidationGroup="fleetrequest"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                        <div>
                            <div class="form-column">
                                <%=GetGlobalResourceObject("CarInsurance", "CallMeAt")%><span style="color: #FF0004">*</span>:</div>
                            <div class="form-row">
                                <asp:DropDownList CssClass="input-fields-dropdown" runat="server" ID="ddlCallMeTime">
                                    <asp:ListItem Value="-1" Text="<%$Resources:CarInsurance,Select %>" />
                                    <asp:ListItem Value="1" Text="<%$Resources:CarInsurance,CallMeMorning %>" />
                                    <asp:ListItem Value="2" Text="<%$Resources:CarInsurance,CallMeAfternoon %>" />
                                    <asp:ListItem Value="3" Text="<%$Resources:CarInsurance,CallMeEvening %>" />
                                    <asp:ListItem Value="4" Text="<%$Resources:CarInsurance,CallMeAnytime %>" />
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvCallMeTime" runat="server" CssClass="validationError"
                                    ValidationGroup="fleetrequest" ErrorMessage="" Text="" InitialValue="-1" ControlToValidate="ddlCallMeTime"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                        <div class="form-row-full" id="divAgreement" style="float: left; padding-top: 20px;">
                            <asp:CheckBox ID="checkIsAgreement" runat="server" onclick="CheckedChanged();" />
                            <asp:Label ID="lblAgreement" runat="server" Text="<%$ Resources:General,Agreement%>"
                                CssClass="check-agree-text"></asp:Label>                    
                            <asp:RequiredFieldValidator ID="rfvIsAccept" runat="server" ControlToValidate="txtIsAccept"
                                    CssClass="validationError" Display="Dynamic" ErrorMessage="" ValidationGroup="fleetrequest"></asp:RequiredFieldValidator>
                            <div style="display:none;">
                                <asp:TextBox ID="txtIsAccept" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <div class="form-row-full">
                            <asp:Button ID="btnSubmit" ValidationGroup="fleetrequest" Text="<%$Resources:General,Submit%>"
                                runat="server" CssClass="action-button" OnClick="btnSubmit_Click" Width="150"
                                OnClientClick="LoadValidationErrorCss();CheckedChanged();if (Page_ClientValidate('fleetrequest')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'action-button-processing';}" />
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
    </div>   
    
    <script type="text/javascript">
        function ShowHideDiv(diveName, varOnOff) {
            document.getElementById(diveName).style.display = varOnOff == true ? '' : 'none';
        }

        function CheckedChanged() {
            var ctrlTxt = document.getElementById('<%=txtIsAccept.ClientID %>');
            var ctrlAgree = document.getElementById('<%=checkIsAgreement.ClientID %>');
            var lblAgree = document.getElementById('<%=lblAgreement.ClientID %>');
            ctrlTxt.value = '1';
            lblAgree.setAttribute("class", "check-agree-text");
            if (ctrlAgree.checked == false) {
                ctrlTxt.value = '';
                lblAgree.setAttribute("class", "check-agree-text validationError");
            }
        }
    </script>
 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpBody" runat="Server">
</asp:Content>

